import cn.hutool.core.map.MapUtil;
import org.junit.Test;

import java.util.HashMap;

/**
 * @author Yanx
 * @Create 2022-05-19-16:17
 */
public class test2 {
    @Test
    public void test(){
        String type = "会议邮件";
        switch (type){
            case "会议邮件":
                if(true){
                    System.out.println("true");
                }
                System.out.println("会议邮件");
                System.out.println("....");
                break;
            case "请假邮件":
                if(true){
                    System.out.println("true");
                }
                System.out.println("请假邮件");
                System.out.println("....");
                break;
        }

        HashMap map = new HashMap();
        map.put("a","a");
        map.put("b","b");

        HashMap map1 = new HashMap();
        map1.putAll(map);


        String instanceId = "";
        try{

            String a = (String) map1.get("a");
            String c =  map1.get("c").toString();
            instanceId = MapUtil.getStr(map1,"instanceId");
            System.out.println(a);
            System.out.println(c);
            System.out.println(instanceId);
        }catch (Exception e){
            System.out.println("...");
        }

    }
}
